//调用接口配置文件
import { request } from 'config/request'
import config from 'config/config'


//获取区域
export async function getProjectPermission(params) {
	return request({
		url: `${config.aheadPlan}system/login/getProjectPermission?userId=${params.userId}`,
		method: 'GET',
	});
  };
   //获取城市
  export async function findByCity(params) {
	return request({
		url: `${config.aheadPlan}admin/competitorWeekly/competitorWeekly/findByCity`,
		method: 'GET',
		data: params,
	});
  };
   //编辑
  export async function editFun(params) {
    return request({
        url: `${config.aheadPlan}cityConfig/CityConfig/edit`,
        method: 'PUT',
		data: params,
		headers: {
			'Content-type': 'application/json',
		  },
    });
  };
//新增
export async function addFun(params) {
	return request({
		url: `${config.aheadPlan}cityConfig/CityConfig/add`,
		method: 'POST',
		data: params,
	});
};
//删除
export async function deleteFun(params) {
	return request({
		url: `${config.aheadPlan}cityConfig/CityConfig/delete`,
		method: 'DELETE',
		data: params,
	});
};